package com.ruoyi.common.core.domain;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;


@Data
public class BaseConditionEntity extends BaseEntity{
    @TableField(exist = false)
    protected String queryTimeKey;
    @TableField(exist = false)
    protected String startTime;
    @TableField(exist = false)
    protected String endTime;
    @TableField(exist = false)
    protected String columnName; // 字段名
    @TableField(exist = false)
    protected String queryType; // 查询方式
    @TableField(exist = false)
    protected Object queryValue; // 查询值

    public String getQueryTimeKey() {
        return StrUtil.toUnderlineCase(queryTimeKey);
    }

    public String getColumnName() {
        return StrUtil.toUnderlineCase(columnName);
    }
}
